package com.stable.model;

import com.stable.spider.ths.XLSData;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import java.io.FileOutputStream;
import java.util.Arrays;
import java.util.List;

public class Test {

    public static void main(String[] args) throws Exception {
        String code = "600519";
        //String code = "603233";


        String filePath = "C:\\Users\\chou\\Desktop\\sample.xls";//文件路径
        HSSFWorkbook workbook = WorkBookCommon.workBook(code);

        FileOutputStream out = new FileOutputStream(filePath);
        workbook.write(out);//保存Excel文件
        out.close();//关闭文件流\\
        System.out.println("OK!");
    }


}
